# -- coding: utf-8 --
import pandas as pd

# 读取JSON文件
df = pd.read_json("files/0203keyword2index.json",typ='series')
print(df)

# 去除空格
df_no_spaces = df.apply(lambda x: x.replace(" ", ""))

print(df_no_spaces)
# 保存结果到新的文件
df_no_spaces.to_json("0203keyword2index_no_spaces.json", orient="records")


        
